namespace Cos.Core.NHibernate.Mapping
{
    #region Usings

    using FluentNHibernate.Mapping;

    #endregion

    public class FormPageCultureMap : ClassMap<FormPageCultureDataModel>
    {
        #region Constructors and Destructors

        public FormPageCultureMap()
        {
            this.Table("Form_Page_Culture");
            this.LazyLoad();
            this.Id(x => x.Id).GeneratedBy.Native().Column("ID");

            this.Map(x => x.FormPageId).Column("Form_Page_ID");
            this.Map(x => x.CultureCode).Column("Culture_Code");
            this.Map(x => x.Status).Not.Nullable().Column("Status");
            this.Map(x => x.NamePreview).Column("Name_Preview");
            this.Map(x => x.NameLive).Column("Name_Live");
            this.Map(x => x.IsVisibleLive).Not.Nullable().Column("Visible_Live");
            this.Map(x => x.IsVisiblePreview).Not.Nullable().Column("Visible_Preview");
        }

        #endregion
    }
}